package com.freejava.test_unit_mock.service;

import com.freejava.test_unit_mock.dao.PocketMonsterDao;
import com.freejava.test_unit_mock.entity.PocketMonster;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

@Service
public class PocketMonsterService {

    @Autowired
    private PocketMonsterDao pocketMonsterDao;

    public PocketMonster getPocketMonsterById(Long id) {
        return pocketMonsterDao.getPocketMonsterById(id);
    }

    public Long insertPocketMonster(PocketMonster pocketMonster) {
        return pocketMonsterDao.insertPocketMonster(pocketMonster);
    }
}
